<template>
  <!--    工作劣势     -->

  <view class="allContainer" :style="[{ minHeight: '700rpx' }]">
    <image class="textImg" :src="partTextImgUrl" />
    <view :style="[{ paddingLeft: '32rpx' }, { paddingRight: '32rpx' }]">
      <view class="contentBack">
        <view
          :style="[
            { marginTop: '33rpx' },
            { display: 'flex' },
            { alignItems: 'center' },
          ]"
        >
          <!-- <span class="smallTitleGreen">毕方的灵力法阵感知到你</span> -->
          <span class="blackBox"> </span>
          <span class="smallTitleGreen"> 劣势 </span>
          <image class="sadImg" :src="sadImg"></image>
        </view>

        <view class="onePartContent" :style="[{ marginTop: '49rpx' }]">
          <view
            v-for="(descItem, descIndex) in workDisadvantages.desc"
            :key="descIndex"
            style="display: flex; margin-bottom: 20rpx"
            ><view class="blueBox"></view
            ><view style="flex: 1">{{ descItem }}</view>
          </view>
        </view>
        <image :src="bottomImg" class="bottomImg" />
      </view>
    </view>
  </view>
</template>

<script>
export default {
  // components: {},
  props: {
    isBlur: {
      type: Boolean,
      default: false,
    },

    workDisadvantages: {
      type: Object,
      default() {
        return {
          title: [
            {
              color: "1",
              label: "测试测试测试测试",
            },
            {
              color: "2",
              label: "测试测试测试测试",
            },
          ],
          desc: [
            "测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试",
            "测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试",
            "测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试",
            "测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试",
            "测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试",
          ],
        };
      },
    },
  },
  data() {
    return {
      bgUrl:
        "https://img3.job1001.com/ypMp/elan/images/career/careerAssessResult/bg_part3_1.png",
      partTextImgUrl: this.$imgBaseSelf + "career/careerAssessNew/title4.png",
      sadImg: this.$imgBaseSelf + "career/careerAssessNew/sad.png",
      bottomImg:
        "https://img3.job1001.com/ypMp/elan/images/career/careerAssessNew/bottom.png",
    };
  },
  mounted() {
    uni
      .createSelectorQuery()
      .in(this)
      .select(".allContainer")
      .boundingClientRect((rect) => {
        this.$emit("listenRect", rect, 4);
      })
      .exec();
  },
  methods: {
    loadMore() {},
  },
};
</script>

<style lang="scss" scoped>
.allContainer {
  position: relative;
  width: 100%;
  background-size: 169rpx 706rpx;
  background-image: url($img-base + "career/careerAssessResult/part4_bamboo.png");
  background-repeat: no-repeat;
  background-position: top left;
  padding-bottom: 60rpx;
  text-align: -webkit-right;
}

.textImg {
  height: 130rpx;
  width: 584rpx;
  image-rendering: -webkit-optimize-contrast;
  z-index: 9;
  position: relative;
}
.smallTitleGreen {
  font-size: 34rpx;
  font-family: Source Han Sans CN;
  font-weight: bold;
  color: #000;
}
.contentBack {
  position: relative;
  width: 100%;
  margin-top: -10rpx;
  background: linear-gradient(
    to bottom,
    #bbeaf8 0%,
    #eefbf0 50rpx,
    #f6f4df 80rpx,
    #f9f7e5 100%
  );
  padding: 20rpx 0 50rpx 0;
  border-radius: 15rpx 0 15rpx 15rpx;
}
.blackBox {
  content: "";
  width: 10rpx;
  height: 37rpx;
  margin-right: 20rpx;
  background: #000;
  color: #000;
  font-size: 26rpx;
  margin-top: 4rpx;
}
.onePartContent {
  font-size: 28rpx;
  color: #555555;
  margin-top: 47rpx;
  line-height: 40rpx;
  padding: 0 32rpx;
  text-align: left;
}
.sadImg {
  width: 48rpx;
  height: 48rpx;
  margin-left: 14rpx;
}
.blueBox {
  width: 26rpx;
  height: 20rpx;
  background: linear-gradient(to right, #76a3ee 0%, #f9f7e5 100%);
  margin-top: 10rpx;
  margin-right: 10rpx;
}
.bottomImg {
  position: absolute;
  width: 100%;
  height: 40rpx;
  right: 0rpx;
  bottom: 0rpx;
}
</style>
